package it.davial.mgwt.server;

import java.util.Properties;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class JpaUtility {

	
	private static EntityManagerFactory emf;
		
	private static Properties pros = new Properties();

	

	public static EntityManagerFactory getEntityFactory(){
		pros.setProperty("eclipselink.persistencexml", "META-INF/persistence.xml");
		if (emf==null) emf =Persistence.createEntityManagerFactory("derm_configuration");
		
		return emf;
	}
	
}
